package com.lzw.mall.common.service;

import com.lzw.mall.common.entity.Attachment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzw.mall.common.vo.ResultVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lizhenwei
 * @since 2023-03-18
 */
public interface IAttachmentService extends IService<Attachment> {

    Integer doSave(Attachment att);

    ResultVO upload(MultipartFile file);

    void updateSource(String ids, Integer pid, String source);

    List<Attachment> selectList(Integer pid,String source);

    ResultVO doDeleteById(Integer id);

    //Integer doSave(String s, Attachment att);
}
